Add the .editing style class to the editable label
while it is editing. The idea is that themes can
show a frame around the entry.
gtk_stack_set_visible_child_name (GTK_STACK (self->stack), "entry");
gtk_widget_grab_focus (self->entry);
+ gtk_widget_add_css_class (self, "editing");
+
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EDITING]);
}
}
gtk_widget_grab_focus (GTK_WIDGET (self));
+
+ gtk_widget_remove_css_class (self, "editing");
+
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EDITING]);
}